{extend name="main/index" /}
{block name="main"}
<!-- Start right content -->
<div class="content-page">
    <!-- ============================================================== -->
    <!-- Start Content here -->
    <!-- ============================================================== -->
    <div class="content">
        <!-- Page Heading Start -->
        <div class="page-heading">
            <h1><i class='fa fa-table'></i>用户列表</h1>
        <!-- Page Heading End-->                <!-- Your awesome content goes here -->
        <div class="row">

            <div class="col-md-12">
                <div class="widget">
                    <div class="widget-header transparent">
                        <h2><strong>Sortable</strong> Table</h2>
                        <div class="additional-btn">
                            <a href="#" class="hidden reload"><i class="icon-ccw-1"></i></a>
                            <a href="#" class="widget-toggle"><i class="icon-down-open-2"></i></a>
                            <a href="#" class="widget-close"><i class="icon-cancel-3"></i></a>
                        </div>
                    </div>
                    <div class="widget-content">
                        <div class="table-responsive">
                            <table data-sortable class="table">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th style="width: 30px" data-sortable="false"><input type="checkbox" class="rows-check"></th>
                                    <th>UserName</th>
                                    <th>name</th>
                                    <th>sex</th>
                                    <th>操作</th>
                                    <th>其他操作</th>
                                </tr>
                                </thead>

                                <tbody>
                                {volist name="list" id="v" key="k"}
                                <tr>
                                    <td>{$v['id']}</td>
                                    <td><input type="checkbox" class="rows-check"></td>
                                    <td><strong>{$v['username']}</strong></td>
                                    <td>{$v['name']}</td>
                                    <td>{$v['sex']==1?'男':'女'}</td>
                                    <td>
                                        <div class="btn-group btn-group-xs">
                                            <a data-toggle="tooltip" title="Off" class="btn btn-default"><i
                                                    class="fa fa-power-off"></i></a>
                                            <a data-toggle="tooltip" title="Edit" class="btn btn-default"><i
                                                    class="fa fa-edit"></i></a>
                                        </div>
                                    </td>
                                    <td>
                                        <a href="{:url('admin/Con1/addrole')}?id={$v['id']}"><buttonm class="btn btn-primary btn-sm">添加角色</buttonm></a>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Footer Start -->

    </div>
    <!-- ============================================================== -->
    <!-- End content here -->
    <!-- ============================================================== -->

</div>
<!-- End right content -->

{/block}